<%= form_for :tags, :url => tags_url, :remote => true do |f| %>
<div>
  <b>新标签:</b><%= f.text_field :name, :title => '用空格间隔开', :id => 'new_tags' %>
  <% customer_ids.each do |id| %>
  <%= hidden_field_tag :'customer_id[]', id %>
  <% end %>
  <%= f.submit '保存' %>或<%= link_to_function '取消',"$('#add_tags_form').hide()" %>
</div>
<% end %>